//
//  MapViewController.h
//  InnoBeacon
//
//  Created by INNO on 14-1-22.
//  Copyright (c) 2014年 com.inno-vision. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreFoundation/CoreFoundation.h>
#import <CoreLocation/CoreLocation.h>
#import <CoreGraphics/CoreGraphics.h>

@class ASIWebPageRequest;
@class ASIFormDataRequest;

struct beaconPoint{
    float x;
    float y;
    float z;
};


@interface MapViewController : UIViewController<CLLocationManagerDelegate,UIWebViewDelegate>
{
    NSTimer                              *_calculateTimer;
    NSTimer                              *_sendDataTimer;
    
    UIWebView   *webView;
    ASIWebPageRequest  *webRequest;
    
    ASIFormDataRequest  *upLoadRequest;
}

@property (retain, nonatomic) ASIWebPageRequest *webRequest;
@property (retain, nonatomic) ASIFormDataRequest *upLoadRequest;

- (void)fetchURL:(NSURL *)url;

-(void)calculateTimeCallback:(NSTimer*)timer;

-(void)sendDataToServerTimer:(NSTimer*)timer;

@end
